import request from '@/utils/request';

//新增
export async function addMaintenanceInfo(params: any) {
  return request('/api/device/addMaintenanceInfo', {
    method: 'POST',
    data: params,
  });
}
//删除
export async function delMaintenanceInfo(params: any) {
  return request('/api/device/delMaintenanceInfo', {
    method: 'POST',
    data: params,
  });
}
//编辑
export async function updateMaintenanceInfo(params: any) {
  return request('/api/device/updateMaintenanceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function getMaintenanceCommissioners() {
  return request('/api/device/getMaintenanceCommissioners', {
    method: 'POST',
  });
}

export async function getMaintenanceInfoByPage(params: any) {
  return request('/api/device/getMaintenanceInfoByPage', {
    method: 'POST',
    data: params,
  });
}
//根据唯一标识查询工单
export async function getMaintenanceInfoByIdentification(params: any) {
  return request('/api/device/getMaintenanceInfoByIdentification', {
    method: 'POST',
    data: params,
  });
}

export async function getMaintenanceHours(params: any) {
  return request('/api/device/getMaintenanceHours', {
    method: 'POST',
    data: params,
  });
}
